#ifndef HEROPLANE_H
#define HEROPLANE_H
#include<QPixmap>
#include<QRect>
#include "bullet.h"

class HeroPlane
{
public:
    HeroPlane();
    void shoot();//发射子弹
    void setPosition(int x,int y);//设置飞机位置
public:
    QPixmap m_Plane;//飞机资源 对象
    //飞机坐标
    int m_X;
    int m_Y;
    QRect m_Rect; //飞机的矩形边框
    bullet m_bullets[BULLET_NUM];//弹匣
    int m_recorder;//发射间隔记录
};

#endif // HEROPLANE_H